package cn.com.code.design.event;

import cn.com.code.design.ICouponDiscount;

import java.math.BigDecimal;

/**
 * @author zhengpei
 * @date 2021/11/4
 */
public class NYGCouponDiscount implements ICouponDiscount<Double> {

  /**
   * n元购购买
   * 1. 无论原价多少钱都固定金额购买
   */
  @Override
  public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {

    return new BigDecimal(couponInfo);
  }

}
